import { createSSRApp } from 'vue'
import uviewPlus from 'uview-plus'
import dayjs from "dayjs"
import duration from 'dayjs/plugin/duration'
import pinia from './stores'
import App from './App.vue'
import './font.scss'


// import mpShare from 'uview-plus/libs/mixin/mpShare'
dayjs.extend(duration)

export function createApp() {
  const app = createSSRApp(App)
  app.use(uviewPlus)
//   app.use(mpShare)
  app.use(pinia)
  return {
    app,
  }
}
